package com.gameapplet.general.controller;

import com.gameapplet.general.model.HelpDocment;
import com.gameapplet.general.service.impl.IHelpDocumentServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/common")
public class GeneralController {
    @Autowired
    IHelpDocumentServiceImpl helpDocumentService;

    HelpDocment helpDocment;
    @RequestMapping("/helpdocument")
    @ResponseBody

    public List<HelpDocment> getHelpDocument(){

        List<HelpDocment> helpDocmentList = helpDocumentService.selectByPrimaryKey();

        return helpDocmentList;
    }
}